package com.zjw.designPattern.factory.abstractfactory;

public class SystemFactoryexample {
    public static void main(String[] args) {
        SystemFactory androidSystem = new AndroidSystem();
        OperationFactory androidSystemOperationFactory = androidSystem.createOperationFactory();
        UIFactory androidUiFactory = androidSystem.cretaeUIFactory();
        androidSystemOperationFactory.control();
        androidUiFactory.display();



        SystemFactory iosSystem = new IOSSystem();
        OperationFactory operationFactory = iosSystem.createOperationFactory();
        UIFactory uiFactory = iosSystem.cretaeUIFactory();
        operationFactory.control();
        uiFactory.display();
    }
}
